package com.xzm.user.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.xzm.ticket.service.TicketService;
import org.springframework.stereotype.Service;

/**
 * @author 3052
 * @create 2020-09-19 16:47
 */
@Service
public class UserService {

    @Reference
    TicketService ticketService;

    public void hello(){
        String ticket = ticketService.getTicket();
        System.out.println("买到票:"+ticket);
    }

}
